<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <style>
        .container {
            border: 1px solid #e6e6e6;
            width: 800px;
            height: 600px;
            margin: auto;
            position: relative;
        }
        p {
            width: 300px;
        }
        .min {
            float: right;
        }
        .right {
            position: absolute;
            right: 0;
            width: 150px;
            top: 0;
        }
        .right input {
            width: 80px;
        }
    </style>
</head>
<body>
    <div class="container">
        <canvas class="main" width="600" height="450"></canvas>
        <canvas class="sub" width="20" height="450"></canvas>
        <p>
            颜色：
            <input class="text">
            <canvas class="min" width="50" height="20"></canvas>
        </p>
        <div class="right">
            <p>
                R:
                <input>
            </p>
            <p>
                G:
                <input>
            </p>
            <p>
                B:
                <input>
            </p>
        </div>
    </div>
    <script src="index.js"></script>
</body>
</html>